package com.example.rpclient.api;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.rpclient.dto.ActivityAddCmd;
import com.example.rpclient.dto.ActivityUpdateCmd;
import com.example.rpclient.dto.data.ActivityVo;
import com.example.rpclient.dto.data.DrawResultVo;
import com.example.rpclient.dto.query.ActivityListByParamQuery;


public interface IActivityService {

    ActivityVo add(ActivityAddCmd cmd);

    ActivityVo update(ActivityUpdateCmd cmd);


    IPage<ActivityVo> page(ActivityListByParamQuery query);

    ActivityVo one(Long id);

    /**
     * 用户抽奖接口
     * @param activityId
     * @return
     */
    DrawResultVo draw(Long activityId);
}
